
<h5 class="memberarea_caption">{$smarty.const.LA_PAID_MEMBERSHIP}</h5>
{if $step == 2}
	{if !$submit}
	<p style="background-color:white">{$smarty.const.LA_PAID_MEMBERSHIP_DESCR} </p>
	{/if}
	<div style="clear:both;height:12px;"></div>
	
	{if $submit && !$manual_payment && !$isFree}
	<p>{$smarty.const.LA_PAY_GWAY}</p>
	
	<p>
	<form method="post" action="payment_options.php">
	<input type="hidden" name='pid' value='{$pid}'/>
	<input type='hidden' name='catid' value="{$catId}"/>
	<input type='hidden' name='cantidad' value="{$cantidad}"/>
	<input type='hidden' name='step' value="2"/>
	
	{if $paypal_account}
		<input type='radio' name='pay' value='1' checked>Paypal<br>
	{/if}
	{if $2checkout_account}
		<input type='radio' name='pay' value='2'>2CheckOut<br>
	{/if}
	{if $worldpay_account}
		<input type='radio' name='pay' value='3'>WorldPay<br>
	{/if}
	{if $autorize_account}
		<input type='radio' name='pay' value='4'>Authorize.net<br>
	{/if}
	{if $beanstreem_account}
		<input type='radio' name='pay' value='6'>BeanStream<br>
	{/if}
	{if $secpay_account}
		<input type='radio' name='pay' value='7'>SECPay<br>
	{/if}
	{if $securetr_account}
		<input type='radio' name='pay' value='8'>Secure Trading<br>
	{/if}
	{if $nochex_account}
		<input type='radio' name='pay' value='9'>Nochex<br>
	{/if}
	{if $manual}
		<input type='radio' name='pay' value='98'>{$smarty.const.LA_PAY_MAUAL}<br>
	{/if}
	
	<br/><br/><input type='submit' class="button" name='final' value='{$smarty.const.LA_PAY_GO}'/>
	</form>
	</p>
	{elseif !$manual_payment && !$freePackageSelected}
	{if $hayCreditosViejos>=1}
		<div style="margin-bottom:5px">			            
            <a href="item.php?catid={$catId}"><img src="/images/buttons/utilizar_credito_disponible.jpg" />{*$smarty.const.EF_USAR_MIS_CREDITOS*}</a>				            
		</div>	
	{/if}	
	<table width="600">
	  <tr>
		<td valign="top">
	{foreach item=user from=$package_list}
		
		{*nuevo estilo de paquetes*}
		
		<div class="home signup signup4">
		    <div class="tall">  
		            <h1 style="text-align: center;">{$user.pname}</h1>
		            <!--h3>Caracteristicas</h3-->  
		            <ul class="highlight" style="margin-top: 12px;margin-left:15px;">
		        {if !$extra}              
				<li><strong>{$user.pdur}</strong> {$smarty.const.LA_PAY_NUM_SUBSCR_UNLIMITED}</li>
				{/if}
				
				{if !$extra}
				<li><strong>{$user.pupload}</strong> {$smarty.const.LA_IMAGES}</li>
				{else}
					{if $user.pupload>0}
						<li><strong>{$user.pupload}</strong> {$smarty.const.LA_IMAGES}</li>
					{/if}
				{/if}					
				{if $user.pmatch} <li><strong>{$user.pmatch}</strong>  {$smarty.const.LA_UP_VID} </li>	{/if}
				{if $user.pmessages}<li>{$smarty.const.LA_RESALTADOS}</li>{/if}
				{if $user.ppremium} <li>{$smarty.const.LA_PAY_PREMIUM}</li>{/if}			        
		           </ul>  
			   <h2 id="displayPrice_{$user.pid}" style="text-align: center;">{$user.pcurrency} {$user.pprice}</h2>
					<form method="post" action="payment_options.php">					
						<input type='hidden' name='pid' value="{$user.pid}" />
						<input type="hidden" value="98" name="pay"/>
						<input type='hidden' name='catid' value="{$catId}" />		
						<input type='hidden' name='step' value="2"/>			
						<input type="hidden" id="price_{$user.pid}" value="{$user.pprice}" name="price"/>
						<input type="hidden" id="currenci_{$user.pid}" value="{$user.pcurrency}" name="currenci"/>
						{if $user.pprice!=0 && $concesionaria==0}		
						<span>{$smarty.const.EF_CANTIDAD}: <span><input type="text" value="1" readonly="readonly" name="cantidad" id="cantidad_{$user.pid}" class="shortInput" />
						<button onclick="javascript: addAviso(1,{$user.pid});" type="button"><img src="layout_images/new/add.png" alt="mas"/></button>
						<button onclick="javascript: addAviso(-1,{$user.pid});" type="button"><img src="layout_images/new/less.png" alt="menos"/></button>
						{else}
						<input type="hidden" value="1" readonly="readonly" name="cantidad" id="cantidad_{$user.pid}" class="shortInput" />
						{/if}
						<br/>
						<br/>					
						<input type='submit' {*name='submit'*} name='final' value="{$smarty.const.LA_PURCHASE}" class="buttonCompra">		
					</form>
			   
		     </div>  
		</div>
	 	
	 	{*END: nuevo estilo de paquetes*}
	 	</td><td valign="top">
	{/foreach}
	</td></tr>
	</table>
		<br/>
		{if $concesionaria==0 && $hay_concesionaria>=1}
            <div style="margin-bottom:5px; float:right">
                <a href="payment_options.php?catid={$catId}&concesionaria=1&step=2">
                    <img src="/images/buttons/ver_paquete_concesionarias.jpg" />{*$smarty.const.EF_IR_CONCESIONARIA*}
                </a>
            </a>
		{elseif $concesionaria==1}
		<div style="margin-bottom:5px; float:right">
            <a href="payment_options.php?catid={$catId}&concesionaria=0&step=2">
                <img src="/images/buttons/ver_paquete_particulares.jpg" />{*$smarty.const.EF_IR_USUARIO*}
            </a>
		</div>
		{/if}
	{/if}
	
	
	
	
	{if $manual_payment}
	<h4>{$smarty.const.EF_ORDEN_NUMBER} <b>{$oid}</b> ({$smarty.const.EF_ORDEN_NUMBER_2}) </h4>
	<br />
	{$smarty.const.LA_YOU_HAVE_SELECTED} <b>{$cantidad}</b> {$smarty.const.LA_PACKAGE}: <b>{$pname}</b> {$smarty.const.EF_DE} <b>{$price}</b> {$pcurrency}. {$smarty.const.EF_POR_UN_TOTAL}
	 <b>{$total}</b> {$pcurrency}.<br/>
	
	<br />
	
	
	
		<br/>	
		<div>	{if $extra}
				<a href="mvial_pay_center.php" class="button">
					{*<input type='button' class="button" name='finalToItem' value='{$smarty.const.EF_CONTINUAR}'>*}
					{$smarty.const.EF_CONTINUAR}
				</a>
				{else}
				<a href="item.php?catid={$catId}" class="button">
					{*<input type='button' class="button" name='finalToItem' value='{$smarty.const.EF_CONTINUAR}'>*}
					{$smarty.const.EF_CONTINUAR}
				</a>
				{/if}	
		</div>
	{/if}
	
	{if $freePackageSelected}	
	    {$smarty.const.EF_PACKAGE_TRYIAL_INFO}
		<br/>	
		<div>			
				<a href="item.php?catid={$catId}" class="button" >{$smarty.const.EF_CONTINUAR}</a>
		</div>
	{/if}
	
	</p>
{elseif $step==1} {*else if step==1 *}
	<br/>
	<center><h3>{$smarty.const.QUIEN_CREDITOS}</h3></center>
	<br/>
	<br/>
    <div align="center" >
        <div align="center" style="width:435px; height:90px">
            <a href="payment_options.php?catid={$catId}&concesionaria=1&step=2" style="float:left"><img src="/images/buttons/Boton_Soy Concesionaria.jpg" /></a>
            <a href="payment_options.php?catid={$catId}&concesionaria=0&step=2" style="float:right"><img src="/images/buttons/Boton_Soy Particular.jpg"  /></a>
        </div>
    </div>
    
{else}
	<br/>
	<center><h3>{$smarty.const.QUIERE_USAR_CREDITOS}</h3></center>
	<br/>
	<br/>
    <div align="center" >
        <div align="center" style="width:435px; height:90px">
            <a href="item.php?catid={$catId}" style="float:left">
                <img src="/images/buttons/Boton_Utilizar_Credito.jpg" />
            </a>
            <a href="payment_options.php?catid={$catId}&step=1" style="float:right">
                <img src="/images/buttons/Boton_Comprar_Paquete.jpg"  />
            </a>
        </div>
    </div>
{/if}
